]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Hide the user menu in the GDM greeter lock screen
authorGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 10 Sep 2012 09:34:49 +0000 (11:34 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 10 Sep 2012 19:23:25 +0000 (21:23 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=683705

js/ui/sessionMode.js
js/ui/userMenu.js

index 14e1ff1f84faf1667673c995d9f57b399d495c3f..082c0f632bdc3b7242f1787b72d1f77580550070 100644 (file)
@@ -48,6 +48,7 @@ const _modes = {
 
     'lock-screen': {
         isLocked: true,
+        isGreeter: undefined,
         unlockDialog: undefined,
         components: ['networkAgent', 'polkitAgent', 'telepathyClient'],
         panel: {
index bb3e1a5d92d93fe930f81d84b9ed2ff024bca734..fcac6cdb783c56b8997e45b82c2cb3d93c9de969 100644 (file)
@@ -577,6 +577,8 @@ const UserMenuButton = new Lang.Class({
     },
 
     _sessionUpdated: function() {
+        this.actor.visible = !Main.sessionMode.isGreeter;
+
         let allowSettings = Main.sessionMode.allowSettings;
         this._statusChooser.setSensitive(allowSettings);
         this._systemSettings.visible = allowSettings;